/*
Copyright [2020] [https://www.xiaonuo.vip]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：

1.请不要删除和修改根目录下的LICENSE文件。
2.请不要删除和修改Snowy源码头部的版权声明。
3.请保留源码和相关描述文件的项目出处，作者声明等。
4.分发源码时候，请注明软件出处 https://gitee.com/xiaonuobase/snowy
5.在修改包名，模块名称，项目代码等时，请注明软件出处 https://gitee.com/xiaonuobase/snowy
6.若您的项目无法满足以上几点，可申请商业授权，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package vip.xiaonuo.modular.appuser.param;

import vip.xiaonuo.core.pojo.base.param.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.util.*;
import java.math.BigDecimal;

/**
* 小程序用户参数类
 *
 * @author wang
 * @date 2022-01-05 13:46:38
*/
@Data
public class AppUserParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空，请检查account参数", groups = {add.class, edit.class})
    private String account;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空，请检查phone参数", groups = {add.class, edit.class})
    private String phone;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空，请检查address参数", groups = {add.class, edit.class})
    private String address;

    /**
     * 年龄
     */
    @NotNull(message = "年龄不能为空，请检查age参数", groups = {add.class, edit.class})
    private Integer age;

    /**
     * 性别
     */
    @NotNull(message = "性别不能为空，请检查sex参数", groups = {add.class, edit.class})
    private Integer sex;

    /**
     * 收入
     */
    @NotBlank(message = "收入不能为空，请检查income参数", groups = {add.class, edit.class})
    private String income;

    /**
     * 行业
     */
    @NotBlank(message = "行业不能为空，请检查industry参数", groups = {add.class, edit.class})
    private String industry;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空，请检查nickname参数", groups = {add.class, edit.class})
    private String nickname;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空，请检查headPortrait参数", groups = {add.class, edit.class})
    private String headPortrait;

    /**
     * 账户状态(0-正常，1-停用，2-删除)
     */
    @NotNull(message = "账户状态(0-正常，1-停用，2-删除)不能为空，请检查status参数", groups = {add.class, edit.class})
    private Integer status;

    /**
     * 邀请码
     */
    @NotBlank(message = "邀请码不能为空，请检查invitationCode参数", groups = {add.class, edit.class})
    private String invitationCode;

    /**
     * 邀请人
     */
    @NotNull(message = "邀请人不能为空，请检查inviter参数", groups = {add.class, edit.class})
    private Long inviter;

    /**
     * 可提现余额
     */
    @NotNull(message = "可提现余额不能为空，请检查withdrawOver参数", groups = {add.class, edit.class})
    private BigDecimal withdrawOver;

    /**
     * 微信oppenid
     */
    @NotBlank(message = "微信oppenid不能为空，请检查openid参数", groups = {add.class, edit.class})
    private String openid;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空，请检查password参数", groups = {add.class, edit.class})
    private String password;

    /**
     * 出生年月
     */
    @NotBlank(message = "出生年月不能为空，请检查initialDate参数", groups = {add.class, edit.class})
    private String initialDate;

}
